package com.example.demo.design_patterns.Strategy;

/**
 * \
 * 加法策略
 *
 * @author: htc
 * @date: Created in 18:05 2019/3/12.
 */
public class AddStrategy implements Strategy {
    /**
     * \
     * 实现calc方法，完成两个数的和
     *
     * @param num1
     * @param num2
     * @return
     */
    @Override
    public int calc(int num1, int num2) {
        return num1 + num2;
    }
}
